package com.shoppingwebsite.config;


import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;

/**
 *       spring配置类
 */
@Configuration                              //设置为配置类
@ComponentScan({"com.shoppingwebsite.service"})         //扫描包
@PropertySource("classpath:jdbc.properties")                  //加载配置文件
@Import({JdbcConfig.class,MybatisConfig.class})     //导入配置类
public class SpringConfig {
}
